.clearfix:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}

#header {
    height: 170px;
    min-width: 981px;
    background: url(../images/header-bg.gif) left 30px repeat-x;
    background-color: #ffffff;
    margin-bottom: 0;

    .header-tips {
        width: 981px;
        height: 24px;
        margin: 0 auto;
        padding: 10px 0 10px 16px;
        color: #6b6b6b;

        .tips {
            float: left;

            a {
                padding: 0 2px;
                color: #367cb4;
            }
        }

        .links {
            float: right;
            position: relative;
            padding-left: 110px;


            .a_count {
                clear: both;
                display: inline-block;
                left: 0;
                top: 0;
                height: 20px;
                padding: 0 10px 0 7px;
                background: url(../images/viewcart.jpg) right 6px no-repeat;
                background-color: #ffffff;
            }

            .a_count:hover {
                background: url(../images/viewcartup.jpg) right 6px no-repeat;
                border: 1px solid #ccc;
                border-bottom: none;
            }

            a {
                float: left;
                margin-right: 9px;
                margin-left: 3px;
                color: #6b6b6b;
                text-decoration: none;
            }

            .links_div {
                width: 67px;
                float: left;
                height: 30px;
                margin-right: 9px;
                margin-left: 3px;
                color: #6b6b6b;
                cursor: pointer;

                .click {
                    display: none;
                    padding: 3px;
                    border: 1px solid #EEEEEE;
                    z-index: 100;
                    position: absolute;
                    margin-top: 5px;
                    background: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#F5F5F5));

                    li {
                        display: block;
                        height: 30px;
                        line-height: 30px;
                    }

                    a:hover {
                        color: red;
                    }
                }


            }

            .links_div:hover .click {
                display: block;
            }

        }
    }

    .header-main {
        position: relative;
        width: 966px;
        height: 90px;
        padding-left: 15px;
        margin: 0 auto;
        z-index: 99;

        a {
            float: left;

            img {
                margin-top: 10px;
                width: 170px;
                height: 50px;
                background: url(../images/logo.png) no-repeat;
                border: 0;
            }
        }

        .mian-input {
            position: absolute;
            left: 227px;
            width: 519px;
            height: 59px;
            padding: 7px 9px;
            border: 1px solid #f1f1f1;
            border-radius: 5px;
            color: #b0b0b0;

            input {
                float: left;
                width: 365px;
                padding: 8px;
                border: 1px solid #d9d9d9;
                border-radius: 3px;
                color: #bbbcbc;
            }

            button {
                position: absolute;
                right: 10px;
                width: 123px;
                height: 34px;
                background: url(../images/search-btn.gif) no-repeat;
                border: none;
                cursor: pointer;
            }

            p {
                position: absolute;
                bottom: 5px;
                left: 10px;
                width: 454px;
                height: 19px;
                overflow: hidden;
                margin-top: 7px;

                a {
                    padding: 0 8px;
                    color: #ea701d;
                }
            }
        }

        .bookcount {
            border-bottom-color: #f1f1f1;
            border-bottom-left-radius: 5px;
            border-bottom-right-radius: 5px;
            border-bottom-style: solid;
            border-bottom-width: 1px;
            border-image-outset: 0 0 0 0;
            border-image-repeat: stretch stretch;
            border-image-slice: 100% 100% 100% 100%;
            border-image-source: none;
            border-image-width: 1 1 1 1;
            border-left-color: #f1f1f1;
            border-left-style: solid;
            border-left-width: 1px;
            border-right-color: #f1f1f1;
            border-right-style: solid;
            border-right-width: 1px;
            border-top-color: #f1f1f1;
            border-top-left-radius: 5px;
            border-top-right-radius: 5px;
            border-top-style: solid;
            border-top-width: 1px;
            color: #b0b0b0;
            height: 59px;
            left: 770px;
            padding-bottom: 7px;
            padding-left: 9px;
            padding-right: 9px;
            padding-top: 7px;
            position: absolute;
            width: 190px;
        }
    }

    .header-nav {
        position: relative;
        zoom: 1;
        z-index: 80;
        bottom: 0px;
        left: 0;
        height: 38px;
        min-width: 998px;
        background: url(../images/nav-box.png) repeat-x;

        .main-nav {
            position: relative;
            width: 981px;
            margin: 0 auto;

            .all-categories {
                display: block;
                width: 150px;
                height: 34px;
                line-height: 34px;
                margin-left: 12px;
                font-size: 14px;
                /* font-family: '微软雅黑'; */
                font-weight: bolder;
                color: #ffffff;
                overflow: hidden;
                cursor: pointer;
            }

            ul {
                position: absolute;
                top: 0;
                left: 230px;
                height: 36px;

                li {
                    display: block;
                    float: left;
                    width: 72px;


                    a {
                        display: block;
                        height: 34px;
                        line-height: 34px;
                        color: #ffffff;
                        font-size: 14px;
                        font-weight: bold;
                        text-align: center;
                    }

                    a:hover {
                        background: #367cb4;
                        text-decoration: none;
                    }

                }

                .nav-bar {
                    display: block;
                    width: 2px;
                    height: 36px;
                    margin-top: -2px;
                    background: url(../images/nav-bar.png) 0 2px no-repeat;
                }

            }
        }
    }
}